package xing.example.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;
import xing.example.bean.A;
import xing.example.converter.StringToA;

/**
 * @author xing
 * @date 2023/2/15 17:18:03
 */
@Component
//@DependsOn("registerCustomEditors")
//@DependsOn("myConverterService")
public class B {
    /**
     * 或在 beans.xml 文件中设置属性值
     */
    @Value("123456")
    public A a;

    public void setA(A a) {
        this.a = a;
    }

    public A getA() {
        return a;
    }
}
